// 前端路由的配置文件
import LoginCode from "../pages/Login/LoginCode";
import LoginPassword from "../pages/Login/LoginPassword";
import RegisterPhone from "../pages/Register/RegisterPhone";
import RegisterCode from "../pages/Register/RegisterCode";
import RegisterPassword from "../pages/Register/RegisterPassword";
import CountryPicker from "../components/CountryPicker";
import Home from "../pages/Home";

// 路由的配置项
const routes = [
  {
    path: "/",
    component: Home,
  },
  {
    path: "/login/code",
    component: LoginCode,
  },
  {
    path: "/login/password",
    component: LoginPassword,
  },
  {
    path: "/register/phone",
    component: RegisterPhone,
  },
  {
    path: "/register/code",
    component: RegisterCode,
  },
  {
    path: "/register/password",
    component: RegisterPassword,
  },
  {
    path: "/countryPicker",
    component: CountryPicker,
  },
];

// 暴露出去
export default routes;
